<div>
    <table border="1" style="border-collapse:collapse" width="60%">
        <tr>
            <th>ID</th>
            <th>包名</th>
            <th>包唯一码</th>
            <th>授权数</th>
            <th>已用授权</th>
            <th>包含应用</th>
        </tr>
        <?php
        foreach($pkgs as $pkg){?>
        <tr>
        <td><?php echo $pkg['id'] ?></td>
        <td><?php echo $pkg['friendly_name'] ?></td>
        <td><?php echo $pkg['unique_name'] ?></td>
        <td><?php echo $pkg['total_num'] ?></td>
        <td><?php echo $pkg['used_num'] ?></td>
        <td>
        <?php
            foreach($pkg['applications_info'] as $appinfo){
                echo '<div style="margin-right:4px;width:148px;padding: 1px;border-bottom:1px solid #bbbbbb">'.$appinfo['FriendlyName'].' | '.$appinfo['UniqueName'].'</div>';
            }
        ?>
        </td>
        </tr>
        <?php
        }
        ?>
    </table>

</div>